home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_usrdoc / SVGALIB-.{2E / SVPMI / SVPMI.H < prev   
Text File  |  1999-09-17  |  829b  |  41 lines

  1.  
  2. typdef struct
  3.   {
  4.     int width;
  5.     int height;
  6.     int bitsperpixel;
  7.     int bytesperscanline;
  8.     int windowgranularity;
  9.     void *setmode ();
  10.     void *setwindow (int);
  11.   }
  12. svpmi_modeentry;
  13.  
  14.  
  15. static void
  16. wait (int x)
  17. {
  18.   int i;
  19.   for (i = 0; i < 10; i++);
  20. }
  21.  
  22. static unsigned char r0, r1, r2, r3, r4, r5, r6, r7;
  23. static unsigned char r8, r9, r10, r11, r12, r13, r14, r15;
  24. static unsigned char r16, r17, r18, r19, r20, r21, r22, r23;
  25. static unsigned char r24, r25, r26, r27, r28, r29, r30, r31;
  26.  
  27. #define boutb(n, p1, p2) __boutb(0, n, p1 p2)
  28. #define __boutp(i, n, p1, p2) \
  29.     #if n != 0 \
  30.     outb(p1, i); outb(p2, r##i); \
  31.     boutb((i + 1), (n - 1), p1, p2); \
  32.     #endif
  33.  
  34. #define inb(r, p) port_in(p)
  35.  
  36. #define and(r, v) r &= v;
  37. #define or(r, v) r |= v;
  38. #define xor(r, v) r ^= v;
  39. #define shr(r, v) r >>= v;
  40. #define shl(r, v) r <<= v;
  41.